<template>
  <div id="app">
   <base-header ></base-header>
   <keep-alive>
      <router-view v-if="$route.meta.cache&&showBol"/>
    </keep-alive>
    <div id="content">
      <router-view  v-if="!$route.meta.cache&&showBol"/>
    </div>
   <base-footer></base-footer>
   <div style="display:none">
     {{isLogin}}
   </div>
  </div>
</template>
<script>
import requestInAdvance from "./mixins/requestInAdvance.js";
export default {
  data() {
    return {
      showBol:true,
    }
  },
 
  computed:{
    isLogin(){
      var login=this.$store.state.isLogin;
      if(login){
        this.showBol=false;
        this.$nextTick(()=>{
           this.showBol=true;
        })
        this.$store.commit("setIsLogin",false);
      }
      return login;
    }
  },
  mixins: [requestInAdvance],
  created(){
       
       
  },
  methods: {
  },
  mounted(){
    
  }
}
</script>



